package com.ruoyi.app.service;


import com.ruoyi.app.utils.AjaxResult;
import com.ruoyi.web.wuliu.domain.AppUser;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zfan 登录服务层
 */
public interface IAppUserLoginService {

    /**
     * 小程序微信授权登录接口
     *
     * @param code
     * @param rawData
     * @param encryptedData
     * @param iv
     * @return
     */
    AjaxResult<AppUser> appLogin(String code, String rawData, String encryptedData, String iv);


    AjaxResult<String> apploginOut(HttpServletRequest request);

    AjaxResult<AppUser> devLogin(String openId, String telephone);

    AjaxResult<AppUser> getUser(HttpServletRequest request);
}
